package org.example.treehole.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Card {
    @ApiModelProperty(value ="帖子序号", example = "1", required = true)
    private int id;
    @ApiModelProperty(value = "openid", example = "ojsfedhdhhfdohueahdk-eodk",required = true)
    private String openid;
    @ApiModelProperty(value = "帖子内容", example = "你好呀",required = true)
    private String content;
    @ApiModelProperty(value = "发帖时间", example = "2024-09-01 10:00:00", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime postTime;
}
